﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LeftMaster.ascx.cs" Inherits="Users_LeftMaster" %>
<link href="CSS/Admin.css" rel="Stylesheet" type="text/css" />
<div class="left_content" style="background-color: #FFFFFF">
    <table border="0" cellpadding="2" cellspacing="0" bgcolor="#3399FF" style="width: 208px">
        <tr>
            <td align="center" style="background-position: url(Images/title.jpg); background: url(Images/title.jpg);
                height: 27px; background-repeat: no-repeat;">
                <font style="color: White; font-weight: bold">Log in</font>
            </td>
        </tr>
        <tr>
            <td align="center" bgcolor="#3399ff" style="padding: 3px">
                <asp:LoginView ID="LoginView1" runat="server">
                    <LoggedInTemplate>
                        Welcome, <a href="Users/Home.aspx">
                            <asp:LoginName ID="LoginName1" runat="server" />
                        </a>
                        <br />
                        <asp:HyperLink ID="HyperLink2" runat="server" Enabled="False" OnLoad="HyperLink2_Load"
                            Visible="False">Admin Page</asp:HyperLink>
                        <br />
                        <asp:LoginStatus ID="LoginStatus1" runat="server" />
                    </LoggedInTemplate>
                    <AnonymousTemplate>
                        <asp:Login ID="Login1" runat="server" DestinationPageUrl="~/Home.aspx" FailureAction="RedirectToLoginPage"
                            FailureText="Log in fail. Please try again.">
                            <LayoutTemplate>
                                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                                    <tr>
                                        <td>
                                            <table border="0" cellpadding="0">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="UserName" runat="server" Width="150px" ValidationGroup="ctl00$ctl00$Login1">username</asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ctl00$ctl00$Login1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="150px" ValidationGroup="ctl00$ctl00$Login1"></asp:TextBox>
                                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctl00$ctl00$Login1">*</asp:RequiredFieldValidator>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" style="color: Red;">
                                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$ctl00$Login1" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="font-weight: bold">
                                                        <asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/Register.aspx">Register</asp:HyperLink>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                        </asp:Login>
                    </AnonymousTemplate>
                </asp:LoginView>
            </td>
        </tr>
        <tr>
            <td align="center" style="background-position: url(Images/title.jpg); background: url(Images/title.jpg);
                height: 27px; background-repeat: no-repeat;">
                <font style="color: White; font-weight: bold">View Ticket Detail</font>
            </td>
        </tr>
        <tr>
            <td align="center" bgcolor="#3399ff" style="padding: 3px">
                <asp:TextBox ID="TextBox1" runat="server">Ticket ID</asp:TextBox>
                <br />
                <asp:Button ID="Button1"
                    runat="server" Text="View Detail" onclick="Button1_Click" />
            </td>
        </tr>
    </table>
</div>
